| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function Write( _ ByVal buffer() As Byte, _ ByVal delimiter() As Byte, _ ByRef offset As Integer, _ ByRef count As Integer _ ) As Boolean | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As SegmentedStream Dim buffer() As Byte Dim delimiter() As Byte Dim offset As Integer Dim count As Integer Dim value As Boolean value = instance.Write(buffer, delimiter, offset, count) | |
| Managed Extensions for C++ | |
|---|---|
public: bool Write( byte[]* buffer, byte[]* delimiter, ref int offset, ref int count ) | |
| C++/CLI | |
|---|---|
public: bool Write( array<byte>^ buffer, array<byte>^ delimiter, int% offset, int% count ) | |
Parameters
- buffer
- The storage location of the data.
- delimiter
- The sequence to find.
- offset
- The zero-based position in the buffer from which to begin writing from.
- count
- The exact number of bytes to write.
Return Value
true if delimiter is found; false otherwise.This method writes data until the delimiter is found (returning true and not writing the delimiter) or writes the entire buffer (returning false).
Flush must be called after writing if this method is being used.
Target Platforms: Microsoft .NET Framework 2.0